<span>

	<?php foreach ($semesters as $semester=>$courses):?>
		<h3 class="course-semester"><?php echo $semester?></h3>
		<ul class="courses">
				
			<?php foreach($courses as $course):?>
			<li>
			
				<h4><?php echo $course->getSubject()->getName()?>
				 	<?php echo $course->getSection()?>: <a href="<?php echo url_for('notes/index').'?course_id='.$course->getId()?>"><?php echo $course->getName()?></a>
				</h4>
				
				<p><? echo $course->getInstructorName()?> &nbsp;
				
						<?php if($sf_user->getId() == $user_id):?>
							| &nbsp; <a  class="course_follow_delete" href="<?php echo $course->getId()?>">delete</a> &nbsp; <!-- | &nbsp; <a href="#">7 Notes</a> &nbsp; | &nbsp; <a href="#">2 Groups</a>--></p>
						<?php endif?>
			</li>
			<?php endforeach?>
		</ul>
	<?php endforeach?>
			
</span>